package com.sina.interfaces.core.sequence;

/**
 * Created by Backache on 2017/5/16.
 */
public class IdUtils {
    /**
     * 当前业务量不大，使用一个ID生成器即可
     * 后续可以改造为指定workerId和datacenterId来进行扩展
     */
    private final static Sequence sequence = new Sequence(0, 0);

    public static Long nextId(){
        return sequence.nextId();
    }
}
